﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
namespace Software41.Tracking.BAM
{
    internal class BAMLinkedDocUrlGenerator
    {
        private static string BAM_MGMT_SVC_URL = "/bam/bammanagementservice/bammanagementservice.asmx/GetReferences?viewName={0}&activityName={1}&activityInstanceId={2}&referenceType={3}";
        private static string BAM_VIEW_PROCESS_TRACE_INFO = "ProcessDiagnostics";

        internal static string BAM_DOCUMENT_URL = "DocumentUrl";

        internal static string GenerateLinkedDocUrl(string activityName, string activityId, string activityRefType)
        {
            return String.Format(BAM_MGMT_SVC_URL,
                                BAM_VIEW_PROCESS_TRACE_INFO,  //view name
                                activityName,  //activity name
                                activityId,  //activity id
                                activityRefType); //referencetype
        }


    }
}
